package com.dao.impl;

import com.dao.AccountDao;
import com.dao.DButil;
import com.model.CurAccount;

public class AccountDaoimpl extends DButil implements AccountDao {
    @Override
    public CurAccount login(String accountName, String accountPassword) {
        String sql="select account_id,account_name,account_status,emp_id from " +
                "tbl_account where account_name=? and account_password=?";

        return super.executeQueryOne(sql,CurAccount.class,accountName,accountPassword);

    }
}